import axios from '../util/axios'

export function AddJineng(params){
  return axios({
    url:'/admin/personal/jineng',
    method:'POST',
    params
  })
}
export function EditJineng(params){
  return axios({
    url:'/admin/personal/jineng',
    method:'PUT',
    params
  })
}
export function AddXiangMu(params){
  return axios({
    url:'/admin/personal/xiangmu',
    method:'POST',
    params
  })
}
export function EditXiangMu(params){
  return axios({
    url:'/admin/personal/xiangmu',
    method:'PUT',
    params
  })
}
export function AddWangZhan(params){
  return axios({
    url:'/admin/personal/wangzhan',
    method:'POST',
    params
  })
}
export function EditWangZhan(params){
  return axios({
    url:'/admin/personal/wangzhan',
    method:'PUT',
    params
  })
}
export function AddGongZuo(params){
  return axios({
    url:'/admin/personal/gongzuo',
    method:'POST',
    params
  })
}
export function EditGongZuo(params){
  return axios({
    url:'/admin/personal/gongzuo',
    method:'PUT',
    params
  })
}
export function ChangeShow(params){
  return axios({
    url:'/admin/personal/changeShow',
    method:'PUT',
    params
  })
}
export function ChangeShort(params){
  return axios({
    url:'/admin/personal/changeShort',
    method:'PUT',
    params
  })
}
export function GetPersonalData(params){
  return axios({
    url:'/admin/personal',
    method:'GET',
    params
  })
}
export function DeleteData(params){
  return axios({
    url:'/admin/personal',
    method:'DELETE',
    params
  })
}